package net.adetech.crj.service;

import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service("demo")
public class DemoService implements BaseService{
    @Override
    public Map<String, Object> invoke(Map<String, Object> params) {

        int a = (Integer) params.get("a");
        int b = (Integer) params.get("b");
        int c = a + b;

        Map<String,Object> result = new HashMap<String, Object>();
        result.put("c",c);
        return result;
    }
}
